'use strict';
module.exports = (sequelize, DataTypes) => {
  const Permission = sequelize.define('Permission', {
    name: DataTypes.STRING,
    AU_CREATE: DataTypes.BOOLEAN,
    AU_UPDATE: DataTypes.BOOLEAN,
    AU_READ: DataTypes.BOOLEAN,
    AU_DELETE: DataTypes.BOOLEAN,
  }, {});
  Permission.associate = function(models) {
    // associations can be defined here
    Permission.belongsTo(models.Role);
  };
  return Permission;
};